/*************************************************************************
	> File Name: Prototype.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-21 20:45:30
 ************************************************************************/

#include "Prototype.h"

#include <iostream>
 
using std::cout;
using std::endl;

ConcreatePrototype1::ConcreatePrototype1(){
    cout << "ConcreatePrototype1()" << endl;
}

ConcreatePrototype1::ConcreatePrototype1(const ConcreatePrototype1 & ){
    cout << "ConcreatePrototype1(const ConcreatePrototype1 &)" << endl;
}

ConcreatePrototype1::~ConcreatePrototype1(){
    cout << "~ConcreatePrototype1()" << endl;
}

Prototype * ConcreatePrototype1::Clone(){
    return new ConcreatePrototype1(*this);
}

ConcreatePrototype2::ConcreatePrototype2(){
    cout << "ConcreatePrototype2()" << endl;
}

ConcreatePrototype2::ConcreatePrototype2(const ConcreatePrototype2 & ){
    cout << "ConcreatePrototype2(const ConcreatePrototype2 &)" << endl;
}

ConcreatePrototype2::~ConcreatePrototype2(){
    cout << "~ConcreatePrototype2()" << endl;
}


Prototype * ConcreatePrototype2::Clone(){
    return new ConcreatePrototype2(*this);
}

